package gwtappcontainer.shared.apis;


import gwtappcontainer.shared.apis.APIResponse.Status;

import java.io.Serializable;

@SuppressWarnings("serial")
public class Response<T> implements Serializable {
	
	public Status statusCode;
	public String userFriendlyMessage;
	
	public T object;
	
	public APIResponse toRestResponse() {
		APIResponse restResponseObject = new APIResponse();
		
		restResponseObject.object = object;
		restResponseObject.statusCode = statusCode;
		restResponseObject.userFriendlyMessage = userFriendlyMessage;
		
		return restResponseObject;
	}		
}
